package com.hope.mychat.service.impl;

import com.hope.mychat.core.listener.IListener;
import com.hope.mychat.core.listener.MyChatListener;
import com.hope.mychat.dao.UserJoinMapper;
import com.hope.mychat.domain.po.UserJoin;
import com.hope.mychat.service.FriendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author ZWH
 */
@Service("FriendService")
public class FriendServiceImpl implements FriendService {

    @Autowired
    private UserJoinMapper userJoinMapper;

    @Override
    public void addFriend(String friendId) {
        UserJoin userJoin = new UserJoin();
        userJoin.setUserId(1);
        userJoinMapper.insert(userJoin);
    }
}
